import request from '@/utils/request'

// 宣传物料分页
export function getList(params) {
  return request({
    url: '/materials/selectPage',
    method: 'POST',
    params
  })
}

// 宣传物料添加
export function addPromotionalMaterials(data) {
  return request({
    url: '/materials/insert',
    method: 'POST',
    data
  })
}

// 宣传物料单查
export function selectPromotionalMaterials(params) {
  return request({
    url: '/materials/findId',
    method: 'POST',
    params
  })
}

// 宣传物料删除
export function deletePromotionalMaterials(data) {
  return request({
    url: '/materials/del',
    method: 'post',
    data
  })
}

// 宣传物料修改
export function updatePromotionalMaterials(data) {
  return request({
    url: '/materials/update',
    method: 'post',
    data
  })
}
